package com.qipay.sp;

import com.qipay.baas.model.Order;
import com.qipay.baas.model.SpChannelRule;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * com.qipay.sp
 *
 * @author Administrator Ansen
 * @date 2017/12/27
 */
public interface SpChannelRuleService {
    @Transactional
    void setOrderSuccess(Order order);

    @Transactional
    void resetCurrentTotalAmount();

    long countByCondition(Long spId);

  List<SpChannelRule> getByCondition(Long spId, int p, int pz);

    SpChannelRule selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SpChannelRule spChannelRule);
    int insert(SpChannelRule spChannelRule);
    int delete(long id);
    SpChannelRule getBySpId(long spId,Byte channelType);

}
